package com.magic.search.service;

import com.magic.item.pojo.Spu;
import com.magic.search.pojo.Goods;
import com.magic.item.pojo.SpecParam;
import com.magic.search.pojo.SearchRequest;
import com.magic.search.pojo.SearchResult;

import java.io.IOException;

/**
 * Created by zhuqin on 2021/1/25
 */
public interface SearchService {
    Goods buildGoods(Spu spu) throws IOException;
    
    String chooseSegment(String value, SpecParam p);
    
    SearchResult search(SearchRequest request);
    
    void createIndex(Long id) throws IOException;
    
    void deleteIndex(Long id);
}
